package com.zds.service.impl;

import com.zds.dao.UserDao;
import com.zds.entity.User;
import com.zds.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className:UserServiceImpl
 * @date: 2025/6/10 下午4:50
 * @description:
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public void getName() {

    }

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public User findById(int id) {
        return userDao.findById(id);
    }
}
